package cache

import (
	commentModel "ozonTest/internal/domain/comments/model"
	postModel "ozonTest/internal/domain/posts/model"
	"sync"
)

type Database struct {
	Posts    map[int]*postModel.Post
	Comments map[int]*commentModel.Comment
	mu       sync.Mutex
}

func NewDatabase() *Database {
	return &Database{
		Posts:    make(map[int]*postModel.Post),
		Comments: make(map[int]*commentModel.Comment),
	}
}
